$(document).ready(function(){
    $("#tb_display").html('<div class="spinner"></div>').load("/content/plugins/thumbBox/thumbBox.obj.php?table=portfolio&catid=1");

    $("#tb_web").click(function(){
        $("#tb_display").html('<div class="spinner"></div>').load("/content/plugins/thumbBox/thumbBox.obj.php?table=portfolio&catid=1");
    });

    $("#tb_flash").click(function(){
        $("#tb_display").html('<div class="spinner"></div>').load("/content/plugins/thumbBox/thumbBox.obj.php?table=portfolio&catid=2");
    });

    $("#tb_3d").click(function(){
        $("#tb_display").html('<div class="spinner"></div>').load("/content/plugins/thumbBox/thumbBox.obj.php?table=portfolio&catid=3");
    });

    $("#tb_vid").click(function(){
        $("#tb_display").html('<div class="spinner"></div>').load("/content/plugins/thumbBox/thumbBox.obj.php?table=portfolio&catid=4");
    });

    $("#itemCount").change(function(){
        $("#tb_display").html('<div class="spinner"></div>').load("/content/plugins/thumbBox/thumbBox.obj.php?table=portfolio&catid=1&maxItems=10");
    });

    $("#defaultView").click(function(){
        $("#tb_display").html('<div class="spinner"></div>').load("/content/plugins/thumbBox/thumbBox.obj.php?table=portfolio&catid=1&view=default");
    });

    $("#thumbView").click(function(){
        $("#tb_display").html('<div class="spinner"></div>').load("/content/plugins/thumbBox/thumbBox.obj.php?table=portfolio&catid=1&view=thumbs");
    });
});